package oldFiles;
import lejos.nxt.Button;
import lejos.nxt.LCD;
import lejos.nxt.LightSensor;
import lejos.nxt.SensorPort;


public class ColorTester {
	
	//private ColorSensor
	
	public static void main(String [] args)  
	   throws Exception 
	   {
		   
		   LightSensor s = new LightSensor(SensorPort.S3, true);

	       LCD.drawString("Value ", 0, 0);
		   
	       while (! Button.ESCAPE.isPressed())
	       {
	           LCD.drawInt(s.readNormalizedValue(),3,13,0);


	       }
	       LCD.clear();
	       LCD.drawString("Program stopped", 0, 0);
	       Thread.sleep(2000);
	   }
	
}
